package com.dxy.lc.listener.event;

import com.dxy.lc.enums.RoomUserOpt;
import org.springframework.context.ApplicationEvent;

public class MemberEditEvent extends ApplicationEvent {

    private Integer roomId;
    private Integer[] memberUserIds;
    private RoomUserOpt optType;

    public MemberEditEvent(Object source, Integer roomId, Integer[] memberUserIds, RoomUserOpt optType) {
        super(source);
        this.roomId = roomId;
        this.memberUserIds = memberUserIds;
        this.optType = optType;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public Integer[] getMemberUserIds() {
        return memberUserIds;
    }

    public RoomUserOpt getEditType() {
        return optType;
    }
}
